<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="static/js/font_1693746_l88lqiaavxa.js"></script>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/font_1693746_l88lqiaavxa.css">
  <title>开发助手高效版-网页jizhicms开发助手</title>
</head>
<body>
<div class="tool-container clearfix">
  <div class="menu">
    <span></span>
  </div>
  <div class="tool-nav" style="display: none;">
    <a href="index.html">导航菜单</a>
    <a href="site.html">站点信息</a>
    <a href="index-page.html">指定栏目</a>
    <a href="index-list.html">指定文章列表</a>
    <a href="index-product.html">指定商品列表</a>
    <a href="sort.html">当前栏目</a>
    <a href="banner.html">轮播图</a>
    <a href="article-list.html">文章列表</a>
    <a href="article-details.html">文章详情</a>
    <a href="productlist.html">产品列表</a>
    <a href="product.html">产品详情</a>
    <a href="pics.html">多图遍历</a>
    <a href="fenye.html">分页</a>
    <a href="message.html">表单留言</a>
    <a href="search.html">搜索列表</a>
    <a href="if.html">IF判断</a>
    <a href="en.html">多语言建站</a> 
    <a href="select.html">多条件筛选</a>
    <a href="label.html">全局标签</a>
    <a href="">会员登录注册</a>
    <a href="javascript:;">无刷新点赞</a>
    <a href="link.html">友情链接</a>
    <a href="other.html">其他</a>
  </div>
  <div class="tool-left">
    <div class="english">
      <a href="en.html"><svg class="icon" aria-hidden="true"><use xlink:href="#iconchina"></use></svg>CN <svg class="icon" aria-hidden="true"><use xlink:href="#iconmeiguo"></use></svg>EN</a>
    </div>
    <div class="logo-search container">
      <a href="site.html" class="logo">极致CMS开发助手</a>
      <a href="search.html" class="search">
        <span>请输入关键词</span>
        <span>搜索</span>
      </a>
      <a href="" class="login">
        <span>登录/注册</span>
      </a>
    </div>
    <div class="header">
      <ul class="navbar clearfix">
        <li><a href="index.html">首页</a></li>
        <li><a href="productlist.html">产品列表</a></li>
        <li><a href="product.html">产品详情</a></li>
        <li><a href="article-list.html">文章列表</a></li>
        <li><a href="article-details.html">文章详情</a></li>
        <li><a href="page.html">单页</a></li>
        <li><a href="label.html">全局标签</a></li>
        <li><a href="other.html">其他</a></li>
      </ul>
    </div>
    <div class="banner container">
      <a href="banner.html"><img src="static/picture/banner.png" alt=""></a>
    </div>
    <div class="index-main container">
      <a href="index-page.html">
        <h3>公司简介</h3>
        <p>欢迎您使用极致CMS商业版, 希望我们的建站系统能够让您在使用的时候感到快乐~郑重承诺极致CMS商业版程序无后门，无限制，全开源，不收授权费，长期运营至死方休。</p>
      </a>
    </div>
    <div class="index-main container">
      <a href="index-product.html">
        <h3>产品展示</h3>
        <span>IMG1</span>
        <span>IMG2</span>
        <span>IMG3</span>
        <span>IMG4</span>
        <span>IMG5</span>
      </a>
    </div>
    <div class="index-foot clearfix">
      <a href="index-list.html" class="index-news">
        <h4>公司新闻</h4>
        <ul>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
        </ul>
      </a>
      <a href="message.html" class="index-form">
        <h4>留言板</h4>
        <div class="form-item">
          <span class="input">请输入您的姓名</span>
        </div>
        <div class="form-item">
          <span class="input">请输入您的电话</span>
        </div>
        <div class="form-item">
          <span class="button">提交</span>
        </div>
      </a>
      <a href="company.html" class="index-contact">
        <h4>联系我们</h4>
        <div class="index-contact-item">
          <p>联系人：HOUJUN</p>
          <p>QQ：11329827</p>
          <p>地址：成都市青羊区</p>
        </div>
      </a>
    </div>
    <div class="index-link container">
      <a href="link.html">
        友情链接：<span>极致CMS</span><span>菜鸟教程</span>
      </a>
    </div>
    <a href="site.html" class="index-footer">
      <p><span>&copy;2020 极致CMS版权所有</span></p>
      <p><span>蜀ICP备2021016482号</span></p>
    </a>
  </div>
  
<div class="tool-right">
    <div class="tool-code">
      <h2>极致CMS开发助手</h2>
      <div class="tool-code-box" id="tool-code1">
          
        <div class="code-box code-case">
          <h3>注册登录</h3>
          <div class="tab-hd">
            <span class="active">模板说明</span>
            <span>个人中心</span>
			 <span>登录后显示</span>
			 <span>AJAX弹窗登录注册</span>
          </div>
          <div class="tab-bd">
<div class="textarea-box">
  <textarea name="" id="" rows="10">
会员登录页：user/index.html
会员注册页：user/register.html
密码找回页：user/forget.html
会员中心首页：user/index.html
会员信息页：user/userinfo.html
会员密码修改页：user/password.html
会员公共主页：user/people.html
内容发布页：user/article-add.html
内容列表页：user/article.html
购买记录页：user/buy-list.html
购买详情页：user/buy-view.html
购物车页面：user/cart.html
我的收藏页：user/collect.html
我的点赞页：user/likes.html
评论列表页：user/comment.html
我的粉丝页：user/fans.html
我的关注用户：user/follow.html
消息提醒页：user/notify.html
订单列表页：user/order.html
订单详情页：user/orderdetails.html
订单支付页：user/payment.html
会员钱包页：user/wallet.html
消息设置页：user/setmsg.html
会员中心左侧栏：user/left_nav.html
会员未登录页：user/nologin.html
会员顶部样式：user/style.html
会员中心导航页：user/top.html
会员中心底部页：user/footer.html
</textarea><button onclick="copyTextarea()">COPY</button>
</div>

<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="10">
模板 user/index.html
投稿文章数
{$article_num}Copy to clipboardErrorCopied
投稿商品数
{$product_num}Copy to clipboardErrorCopied
自定义模型计算投稿数
{fun M('模型标识')->getCount(['member_id'=>$member['id']])}Copy to clipboardErrorCopied
关注数
{fun jz_follow($member['id'])}Copy to clipboardErrorCopied
粉丝数
{fun jz_fans($member['id'])}Copy to clipboardErrorCopied
收藏数
{$collect_num}Copy to clipboardErrorCopied
评论数
{$comment_num}Copy to clipboardErrorCopied
点赞数
{$likes_num}Copy to clipboardErrorCopied
订单数
{$order_num}Copy to clipboardErrorCopied
当前用户相关信息
用户名：{$member['username']}
个性签名：{if($member['signature'])}{$member['signature']}{else}他很懒，什么都没有留下~{/if}
手机号码：{$member['tel']}
电子邮箱：{$member['email']}
生日：{if($member['birthday'])}{$member['birthday']}{else}-{/if}
性别：{if($member['sex']==1)}男{else if($member['sex']==2)}女{else}未知{/if}
</textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="10">
 会员名称{$member['username']}
会员头像{if(!$member['litpic'])}{$common}user/images/login.png{else}{$member['litpic']}{/if}
简介 {if(!$member['signature'])}作者有点忙，还没写简介{else}{$member['signature']}{/if}
会员年龄(N天) {fun formatTime($member['regtime'])} 
会员注册时间(Y-M-D) {fun date('Y-m-d H:i:s',$member['regtime'])}
投稿次数 {fun M('article')->getCount(['member_id'=>$member['id']])}
评论次数 {fun M('comment')->getCount(['userid'=>$member['id']])} 这个没测试模式user要改成mem

</textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="20">
  <!-- Modal -->
<div class="modal fade" id="loginModel" tabindex="-1" aria-labelledby="loginModelLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="loginModelLabel">登录</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
       
	    <div class="mb-3">
		  <label for="m-user" class="form-label">账户</label>
		  <input type="text" class="form-control" id="m-user" placeholder="请输入邮箱/昵称/手机号">
		</div>
		<div class="mb-3">
		  <label for="m-pass" class="form-label">密码</label>
		  <input type="password" class="form-control" id="m-pass" placeholder="请输入登录密码">
		</div>
		{if(!$webconf['closehomevercode'])}
		<div class="mb-3">
		  <label for="m-yzm" class="form-label">验证码</label>
		  <input type="text" class="form-control" id="m-yzm" placeholder="请输入验证码">
		</div>
		<div class="mb-3">
			<img src="/common/vercode?name=login_vercode"  onclick="this.src=this.src+'&'+Math.random()">
		</div>
		{/if}
		<div class="mb-3">
		<p>没有账户？<a  class="register" style="color:#5974ff;" data-bs-dismiss="modal" data-bs-toggle="modal" data-bs-target="#registerModel">点击注册</a></p>
		</div>
		
		
		
	   
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
        <button type="button" onclick="mlogin()" class="btn btn-primary">登录</button>
      </div>
    </div>
  </div>
</div>

<div class="modal fade" id="registerModel" tabindex="-1" aria-labelledby="registerModelLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="registerModelLabel">注册</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        <div class="mb-3">
		  <label for="r-tel" class="form-label">*手机</label>
		  <input type="tel" class="form-control" id="r-tel" placeholder="请输入手机号">
		</div>
		<div class="mb-3">
		  <label for="r-pass" class="form-label">*密码</label>
		  <input type="password" class="form-control" id="r-pass" placeholder="请输入登录密码">
		</div>
		<div class="mb-3">
		  <label for="r-pass" class="form-label">*重复密码</label>
		  <input type="password" class="form-control" id="r-repass" placeholder="请输入登录密码">
		</div>
		{if(!$webconf['closehomevercode'])}
		<div class="mb-3">
		  <label for="r-yzm" class="form-label">*验证码</label>
		  <input type="text" class="form-control" id="r-yzm" placeholder="请输入验证码">
		</div>		
		<div class="mb-3">
			<img id="register-yzm" src="/common/vercode?name=reg_vercode" onclick="this.src=this.src+'&'+Math.random()">
		</div>
		{/if}
		<div class="mb-3">
		<p>已有账户？<a  class="login" style="color:#5974ff;" data-bs-dismiss="modal" data-bs-toggle="modal" data-bs-target="#loginModel">点击登录</a></p>
		</div>
		
		
		
	   
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
        <button type="button" onclick="mregister()" class="btn btn-primary">注册</button>
      </div>
    </div>
  </div>
</div>
<script>
function mlogin(){
	var user = $("#m-user").val();
	var pass = $("#m-pass").val();
	
	if(user==''){
		layer.alert('登录账户不能为空！');return false;
	}
	if(pass==''){
		layer.alert('登录密码不能为空！');return false;
	}
	{if(!$webconf['closehomevercode'])}
	var yzm = $("#m-yzm").val();
	if(yzm==''){
		layer.alert('验证码不能为空！');return false;
	}
	{else}
	var yzm = '';
	{/if}
	
	$.post('/login/index',{tel:user,password:pass,vercode:yzm,ajax:1},function(res){
		if(res.code==0){
			layer.msg('登录成功！',{icon: 6,time: 2000},function(){
				//登录成功后的操作
				location.reload();
			})
		}else{
			layer.msg(res.msg,{icon:5,time:2000});
			var img = '/common/vercode?name=login_vercode&'+Math.random();
			$("#login-yzm").attr('src',img);
		}
	},'json')
	
	return false;
	
}

function mregister(){
	var tel = $("#r-tel").val();
	var pass = $("#r-pass").val();
	var repass = $("#r-repass").val();
	
	if(tel==''){
		layer.alert('手机号不能为空！');return false;
	}
	if(pass==''){
		layer.alert('登录密码不能为空！');return false;
	}
	if(repass==''){
		layer.alert('重复密码不能为空！');return false;
	}
	if(pass!=repass){
		layer.alert('两次密码不同！');return false;
	}
	{if(!$webconf['closehomevercode'])}
	var yzm = $("#r-yzm").val();
	if(yzm==''){
		layer.alert('验证码不能为空！');return false;
	}
	{else}
	var yzm = '';
	{/if}
	
	$.post('/login/register',{tel:tel,repassword:repass,password:pass,vercode:yzm,ajax:1,autologin:1},function(res){
		if(res.code==0){
			layer.msg(res.msg,{icon: 6,time: 2000},function(){
				//登录成功后的操作
				window.location.href=res.url;
			})
		}else{
			layer.msg(res.msg,{icon:5,time:2000});
			var img = '/common/vercode?name=reg_vercode&'+Math.random();
			$("#register-yzm").attr('src',img);
		}
	},'json')
	
	return false;
	
}
</script></textarea><button onclick="copyTextarea()">COPY</button>
</div>
          </div>
		  <div class="code-box code-create">
          <h3>登录判断</h3>
          <div class="num">
            <div class="result-code">
             <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
 {if(!$islogin)}未登录{else}已登录{/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
          <div class="code-tips">
            <span>Tips</span>官网教程: https://help.jizhicms.cn/#/
          </div>
      </div>
      
        <div class="code-box code-para">
          <h3>常用标签 <span>(点击即复制)</span></h3>
            <button onclick="copyText()"><span class="copy">{$v['title']}</span><span>文章标题</span></button>
            <button onclick="copyText()"><span class="copy">{$v['url']}</span><span>内容链接</span></button>
            <button onclick="copyText()"><span class="copy">{$v['hits']}</span><span>热度/点击量</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['classname']}</span><span>所属栏目名</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['url']}</span><span>所属栏目url</span></button>
            <button onclick="copyText()"><span class="copy">{$v['description']}</span><span>简介</span></button>
            <button onclick="copyText()"><span class="copy">{$v['litpic']}</span><span>缩略图</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d',$v['addtime'])}</span><span>时间:年-月-日</span></button>
            <button onclick="copyText()"><span class="copy">{$v['xxx']}</span><span>其他字段内容</span></button>
            <div class="code-tips">
                <span>Tips</span>用法和列表一样
            </div>
        </div>
        
        <div class="code-box code-label">
          <h3>全部标签 <span>(点击即复制)</span></h3>
            <button onclick="copyText()"><span class="copy">{$v['title']}</span><span>文章标题</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr($v['title'],50)}</span><span>标题截取25字</span></button>
            <button onclick="copyText()"><span class="copy">{$v['url']}</span><span>内容链接</span></button>
            <button onclick="copyText()"><span class="copy">{$v_key}</span><span>计数器从0开始计</span></button>
            <button onclick="copyText()"><span class="copy">{$n}</span><span>计数器从1开始计</span></button>
            <button onclick="copyText()"><span class="copy">{$v['hits']}</span><span>热度/点击量</span></button>
            <button onclick="copyText()"><span class="copy">{$v['comment_num']}</span><span>评论数</span></button>
            <button onclick="copyText()"><span class="copy">{$v['tid']}</span><span>所属栏目id</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['classname']}</span><span>所属栏目名</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['url']}</span><span>所属栏目url</span></button>
            <button onclick="copyText()"><span class="copy">{$v['description']}</span><span>简介</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr($v['description'],40)}</span><span>简介截取20字</span></button>
            <button onclick="copyText()"><span class="copy">{$v['url']}</span><span>链接</span></button>
            <button onclick="copyText()"><span class="copy">{$v['litpic']}</span><span>缩略图</span></button>
            <button onclick="copyText()"><span class="copy">{$v['body']}</span><span>内容</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr(htmldecode($v['body']),30)}</span><span>内容纯文字</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d',$v['addtime'])}</span><span>时间:年-月-日</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d H:i:s',$v['addtime'])}</span><span>时间:年-月-日 时:分:秒</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y/m/d',$v['addtime'])}</span><span>时间:年/月/日</span></button>
            <button onclick="copyText()"><span class="copy">{$v['xxx']}</span><span>其他字段内容</span></button>
            <input type="text" id="input" value="12345" style="opacity: 0;">
                <div class="code-tips">
                    <span>Tips</span>循环,列表开始,中间调用,列表结束
                </div>
        </div>
        
    </div>
  </div>
</div>
</div>
<script src="static/js/jquery-1.10.2.js"></script>
<script src="static/js/base.js"></script>
</body>
</html>